#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>      
#include <string.h>
#include <assert.h>

int my_strcmp(const char* p1, const char* p2)
{
	assert(p1 && p2);
	while (*p1&&*p2)
	{
		if (*p1 != *p2)
			break;
		else
		{
			p1++;
			p2++;
		}
	}
	 return (*p1 - *p2);
}

int main()
{
	char arr1[] = "accefg";
	char arr2[] = "abcefg";
	int ret = my_strcmp(arr1, arr2);
	printf("%d\n", ret);
	if (ret > 0)
		printf(">\n");
	else if (ret < 0)
		printf("<\n");
	else
		printf("=\n");
	return 0;
}